Skip to content

Conversation

@easyCZ
Copy link
Member

@easyCZ easyCZ commented Sep 14, 2022

Description

Adds a Gauge metric which tracks the last time we completed a scheduled ledger reconciliation. We'll use this metric to setup an alert for when we haven't completed a run succesfully for more than 1h (which could cause us to have gaps in the data).

This metric is setup the same way as other standard kube metrics- see example

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@easyCZ easyCZ requested a review from a team September 14, 2022 12:58
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 14, 2022
}, nil
}

func NewLedgerTriggerJobSpec(schedule time.Duration, job Job) (JobSpec, error) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is moved into separate file to make navigation a bit easier.

Comment on lines +33 to +35
defer func() {
reportLedgerCompleted(err)
}()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change in logic - reporting the metric

@roboquat roboquat merged commit 075d856 into main Sep 15, 2022
@roboquat roboquat deleted the mp/usage-track-last-completed-time branch September 15, 2022 06:23
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/L team: webapp Issue belongs to the WebApp team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants